package com.city.service.auth.impl;

import com.city.domain.auth.AuthLevelTwo;
import com.city.repository.auth.AuthLevelTwoRepository;
import com.city.service.auth.AuthLevelTwoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AuthLevelTwoServiceImpl implements AuthLevelTwoService {

    @Autowired
    private AuthLevelTwoRepository authLevelTwoRepository;

    @Override
    public List<AuthLevelTwo> findAll() {
        return authLevelTwoRepository.findAll();
    }

    @Override
    public void save(AuthLevelTwo authLevelTwo) {
        authLevelTwoRepository.save(authLevelTwo);
    }
}
